package compiler.intermediate;

import es.uned.lsi.compiler.intermediate.LabelFactory;
import es.uned.lsi.compiler.intermediate.LabelFactoryIF;
import es.uned.lsi.compiler.intermediate.LabelIF;
import es.uned.lsi.compiler.semantic.ScopeIF;

public class GeneradorCodigo {

	
	protected final int COPIAR 			= 0;
	protected final int SALTO			= 1;
	protected final int SALTO_SI_FALSO 	= 2;
	
	
	
	private String 	resultado 	= "";
	private int 	contadorIf 	= 0;
	
	
	public String insertarCI(int op, String dirTemp, String dir2, String dirResult){
		
		
		
		ScopeIF scope = null;
		
		switch (op){
			case COPIAR:
				resultado = "MOVE dir1,dir2";
				break;
			case SALTO:
				LabelFactoryIF lF = new LabelFactory ();
				LabelIF l1 = lF.create();
				LabelIF l2 = lF.create();
				
				
				
			case SALTO_SI_FALSO:
				
			
				
		}
		
		return resultado;
	}
	
	
	
	
}
